#include <iostream>
#include <string>
class Person {
protected:
    std::string id_number;
    std::string name;
public:
    Person(const std::string& id, const std::string& name) : id_number(id), name(name) {}

    void display() {
        std::cout << "编号: " << id_number << std::endl;
        std::cout << "姓名: " << name << std::endl;
    }
};
class Student : public Person {
private:
    std::string class_name;
    double score;
public:
    Student(const std::string& id, const std::string& name, const std::string& class_, double score)
        : Person(id, name), class_name(class_), score(score) {}

    void display() {
        Person::display();
        std::cout << "班级: " << class_name << std::endl;
        std::cout << "成绩: " << score << std::endl;
    }
};
class Teacher : public Person {
private:
    std::string title;
    std::string department;
public:
    Teacher(const std::string& id, const std::string& name, const std::string& title, const std::string& department)
        : Person(id, name), title(title), department(department) {}

    void display() {
        Person::display();
        std::cout << "职称: " << title << std::endl;
        std::cout << "部门: " << department << std::endl;
    }
};

int main() {
    Student student("2312260144", "张", "一班", 666);
    student.display();

    Teacher teacher("778889900", "秘密", "教授", "计算机系");
    teacher.display();

    return 0;
}